package java基础知识;

/**
 * @author coderFu
 * @create 2022/2/7
 * 饿汉式单例模式
 */
public class HungrySingleObject {

    private static final  HungrySingleObject hungrySingleObject = new HungrySingleObject();

    private HungrySingleObject(){

    }

    public static HungrySingleObject getInstance(){
        return hungrySingleObject;
    }


}
